<include file="Layout/header" />
</head>
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
    <li class="active"><a href="{:U('Admin/Rule/group')}">用户组列表</a>&gt; 用户组添加用户</li>
  </ul>
</div>
<div class="page-content">
  <div class="row">
    <table class="table table-striped table-bordered table-hover table-condensed">
      <tr>
        <th width="10%"> 搜索用户名：</th>
        <td><form class="form-inline" action="">
            <div class="col-xs-12 col-sm-8">
              <div class="input-group">
                <input class="form-control search-query" placeholder="请输入管理员账号" type="text" name="username" value="{$Think.get.username}">
                <span class="input-group-btn">
                <button type="submit" class="btn btn-purple btn-sm"> 搜索 <i class="icon-search icon-on-right bigger-110"></i> </button>
                </span> </div>
            </div>
          </form></td>
      </tr>
    </table>
    <table class="table table-striped table-bordered table-hover table-condensed">
      <tr>
        <th width="10%">用户名</th>
        <th>操作</th>
      </tr>
      <foreach name="user_data" item="v">
        <tr>
          <th>{$v['username']}</th>
          <td><if condition="in_array($v['id'],$uids)"> 已经是{$group_name}
              <else/>
              <a href="{:U('Admin/Rule/add_user_to_group',array('uid'=>$v['id'],'group_id'=>$_GET['group_id'],'username'=>$_GET['username']))}">设为{$group_name}</a></if></td>
        </tr>
      </foreach>
    </table>
  </div>
</div>
<include file="Layout/js"/>
</body>
</html>